package com.itheima.date;

import java.util.Date;

public class Demo01 {

    public static void main(String[] args) {

       // System.out.println(System.currentTimeMillis());
        Date date = new Date();//Wed Dec 01 09:44:31 CST 2021
        System.out.println(date);

        Date date1 = new Date(0L);//Thu Jan 01 08:00:00 CST 1970
        System.out.println(date1);


        Date date2 = new Date(System.currentTimeMillis());
        System.out.println(date2);

        //1900开始加
        Date date3 = new Date(121, 11, 1);
        System.out.println(date3);

    }
}
